<?php $this->_extends('_layouts/default_layout'); ?>
<?php echo $this->_block('title')?>
<?php echo '会员中心推荐赚钱',$config['sitename'] ?>
<?php echo $this->_endblock()?>
<?php echo $this->_block('meta')?>
<link rel="stylesheet"
	type="text/css" href="<?php echo $_BASE_DIR; ?>css/global.css" />
<link rel="stylesheet"
	href="<?php echo $_BASE_DIR; ?>images/account_con.css" type="text/css">
	<script type="text/javascript" src="<?php echo $_BASE_DIR?>javascripts/jquery.min.js"></script>
	
<?php echo $this->_endblock()?>
<?php $this->_block('center'); ?>
<div  class="line6px">
	<img src="<?php echo $_BASE_DIR; ?>images/account_con_03.jpg">
</div>
<div id="maincon_c">
<?php $this->_element('userleft') ?>
	<div id="maincon_c_r">
		<div id="tjmain">
			<div style="padding-bottom: 5px;" align="center">
				<img src="<?php echo $_BASE_DIR; ?>images/tjtitle.jpg">
			</div>
			<hr>
			<div id="tjlink">
				<ul>
					<li><span>您的推荐地址：</span></li>
					<li><input id="commendUrl" name="commendUrl"
						value="http://www.voip.com/users/reg?unlink=<?php echo helper_users_login::userbase()->userid?>" type="text">
					</li>
					<li><a href="javascript:copyToClipBoard();"><img
							src="<?php echo $_BASE_DIR; ?>images/copylink.jpg"> </a></li>
					<li><span class="addthis_org_cn"><a
							href="http://addthis.org.cn/share/" target="_blank"><img
								src="<?php echo $_BASE_DIR; ?>images/sharelink.jpg"> </a> </span>
					</li>
				</ul>
			</div>
			<div class="clear"></div>
			<hr>
			
		</div>
		<div class="clear"></div>
		<br>
		<h4>您成功推荐的会员：</h4>
	
	
		<table border="2" bordercolor="#FFFFFF" cellpadding="0"
			cellspacing="0" width="100%">
			<tbody>
			<tr>
			<td class="firtr" >账号</td>
			<td class="firtr">手机</td>
			<td class="firtr">注册时间</td>
			</tr>
			<?php foreach($item as $k=>$v):?>
			<tr align="center">
			<td width="13%"><strong><?php echo $v->userid;?></strong> 
			<?php if (count($v->subuser)>0):?>
			| <a href="<?php echo url("users/recommend",array('parentuserid'=>$v->userid))?>">查看下级</a>
			<?php endif;?>
			</td>
			<td width="13%"><strong><?php echo $v->userphone;?></strong></td>
			<td width="13%"><strong><?php echo date('Y-m-d G:i:s',$v->createtime);?></strong></td>
			
			</tr>
			<?php endforeach;?>
				
				
			</tbody>
		</table>
		<div class="page">
							<?php echo $this->_control('pagination', 'my-pagination', array('pagination' => $pagination,'url_args'=>$param)); ?>
							</div>
	</div>
	
	<div class="clear"></div>
</div>

<div style="margin-bottom: 10px;"  class="line6px">
	<img src="<?php echo $_BASE_DIR; ?>images/account_con_15.jpg">
</div>
<script>

function copyToClipBoard()
{
	var commendUrl = document.getElementById('commendUrl');
	 window.clipboardData.setData("Text",commendUrl.value);
	 alert('复制成功');
	}
</script>
<?php $this->_endblock(); ?>
